import request from '@/utils/request'

export function optionHospital(params) {
  return request({
    url: '/hospital/hospital/option',
    method: 'get',
    params
  })
}

// 根据公司Id 查询医院选项列表 (合约生效)
export function optionHospitalForCompany(companyId) {
  return request({
    url: '/hospital/hospital/option',
    method: 'get',
    params: {
      companyId
    }
  })
}

// 根据公司Id 查询医院选项列表(合约失效和生效的，未生效)
export function optionAllHospital(companyId) {
  return request({
    url: '/hospital/hospital/selection',
    method: 'get',
    params: {
      companyId
    }
  })
}

export function getHospital(hospitalId) {
  return request({
    url: '/hospital/hospital/' + hospitalId,
    method: 'get',
  })
}

// 根据医院ID查询医院员工列表
export function optionHospStaff(hospitalId) {
  return request({
    url: '/hospital/staff/option',
    method: 'get',
    params: {
      hospitalId
    }
  })
}
